/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 * <p>
 * https://www.renren.io
 * <p>
 * 版权所有，侵权必究！
 */

package com.cn.xiaonuo.tcrfinance.tcrbanner.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cn.xiaonuo.common.entity.BusinessMessage;
import com.cn.xiaonuo.tcrfinance.tcrbanner.entity.PvBanner;
import com.cn.xiaonuo.tcrfinance.tcrbanner.param.BannerParam;

public interface PvBannerService extends IService<PvBanner> {

    /**
     * 首页查看Banner
     *
     * @param type
     * @return
     */
    public BusinessMessage queryBanners(Integer type);

    //后台管理系统banner列表
    public BusinessMessage selectBanners(Integer pageSize,Integer pageNum);

    //banner添加
    public BusinessMessage insertBanner(String title, String imageUrl, String actionSort, String type,String cmdAndroid,String cmdParameter);

    //banner删除
    public BusinessMessage deleteBanner(Integer id);

    /**
     * 修改banner
     * @param bannerParam
     * @return
     */
    BusinessMessage updateBanner(BannerParam bannerParam);

    /**
     * 查看banner
     * @param bannerParam
     * @return
     */
    BusinessMessage queryBannerById(BannerParam bannerParam);
}
